<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: Empty line box influence</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" />
        <meta name="flags" content="ahem" />
        <meta name="assert" content="Empty inline elements still influence calculation just like elements with content." />
        <style type="text/css">* { margin: 0; padding: 0 }
            div, span
            {
                font: 1in/1em Ahem;
            }
            #div1
            {
                margin-top: 1in;
            }
            #div2, #div3
            {
                width: 5in;
            }
            #div2
            {
                border: 0.25in solid green;
            }
            span
            {
                background: green;
                border: 0.25in solid green;
                margin: 1in;
                padding: 1in;
            }
            #div3
            {
                border: 0.25in solid red;
                height: 1in;
                position: relative;
                top: -1.5in;
                z-index: -1;
            }
            #div3 div
            {
                background: red;
                border: 0.25in solid red;
                height: 3in;
                margin: 0 1in;
                position: relative;
                top: -1.25in;
                width: 2in;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is no red visible on the page.</p>
        <div id="div1">
            <div id="div2">
                <span></span>
            </div>
            <div id="div3">
                <div></div>
            </div>
        </div>
    </body>
</html>